package com.atguigu.dao;

import com.atguigu.pojo.TravelGroup;
import com.github.pagehelper.Page;

import java.util.List;
import java.util.Map;

public interface TravelGroupDao {

    void add(TravelGroup travelGroup);


    void setTravelGroupAndTravelItem(Map<String, Integer> map);

    Page findPage(String queryString);


    TravelGroup get(Integer id);

    List<Integer> getTravelItemIds(Integer travelGroupId);

    void edit(TravelGroup travelGroup);

    void deleteTravelGroupAndTravelItemByTravelGroupId(Integer travelGroupId);

    List<TravelGroup> findAll();


//    void delete(Integer id);
}
